package fr.epsi.spring1.domain;

public class User {

	private String login;
	private String password;
	private String nom;
	private Boolean isAdministrator;
	private UserLoginHistory loginHistory;

	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public Boolean getIsAdministrator() {
		if (isAdministrator == null) {
			isAdministrator = false;
		}
		return isAdministrator;
	}
	public void setIsAdministrator(Boolean isAdministrator) {
		this.isAdministrator = isAdministrator;
	}
	public UserLoginHistory getLoginHistory() {
		return loginHistory;
	}
	public void setLoginHistory(UserLoginHistory loginHistory) {
		this.loginHistory = loginHistory;
	}

}
